package com.hustcad.es.mapper;

import com.hustcad.es.entity.Item;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

/**
 * Created by wangwen on 2019/9/23 11:17
 */
public interface ItemRepository extends ElasticsearchRepository<Item,Long> {
    /**
     * 根据价格区间查询
     * @param price1 price1
     * @param price2 price2
     * @return com.hustcsad.es.entity.Item
     */
    List<Item> findByPriceBetween(double price1, double price2);
}
